import request from '@/utils/request'

// 查询项目与人员分配列表
export function listProjectUserAssignment(query) {
  return request({
    url: '/project/projectUserAssignment/list',
    method: 'get',
    params: query
  })
}

// 查询项目与人员分配详细
export function getProjectUserAssignment(assignmentId) {
  return request({
    url: '/project/projectUserAssignment/' + assignmentId,
    method: 'get'
  })
}

// 新增项目与人员分配
export function addProjectUserAssignment(data) {
  return request({
    url: '/project/projectUserAssignment',
    method: 'post',
    data: data
  })
}

// 修改项目与人员分配
export function updateProjectUserAssignment(data) {
  return request({
    url: '/project/projectUserAssignment',
    method: 'put',
    data: data
  })
}

// 删除项目与人员分配
export function delProjectUserAssignment(assignmentId) {
  return request({
    url: '/project/projectUserAssignment/' + assignmentId,
    method: 'delete'
  })
}
